package cn.edu.wynu.annotation;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

// @Configuration的作用是告诉spring:MyConfig这个类是一个配置类,相当于之前写的cats.xml
// @ComponentScan("cn.edu.wynu.annotation") 告诉spring要扫描哪些包下面的类
@Configuration
@ComponentScan("cn.edu.wynu")
public class MyConfig {
}
